﻿using Coldairarrow.Entity.PB;
using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
     public class PB_DispatchDTO: PB_Dispatch
    {
        /// <summary>
        /// 组织名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 派工类别名称
        /// </summary>
        public string TeamTypeName { get; set; }
        /// <summary>
        /// 用户Code
        /// </summary>
        public string UserCode { get; set; }
        public List<PB_DispatchDetailDTO> subdata { get; set; }
        public List<PB_DispatchDetailsub>DispatchDetailsub { get; set; }

    }
    public class axjxdis {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; } = true;

        /// <summary>
        /// 错误代码
        /// </summary>
        public int ErrorCode { get; set; }

        /// <summary>
        /// 返回消息
        /// </summary>
        public string Msg { get; set; }
        public PB_DispatchDTO Data { get; set; }
    }
    public class PB_DispatchDetailsub
    {

        public string ProcecureSubName { get; set; }
        public string Nums { get; set; }
    }

    //针对于报工不合格的单子进行出来
    public class ScrappingProducts {

       /// <summary>
       /// 流转单id/成品id
       /// </summary>
        public string Id { get; set; }

  
      

  

        public List<ScrappingProductsDetail> SubordinateProductList { get; set; }
    }
    public class ScrappingProductsDetail {

        /// <summary>
        /// 派工日期
        /// </summary>
        public DateTime? DispatchDate { get; set; }

        /// <summary>
        /// 任务单明细Id
        /// </summary>
        public string OrderDetailId { get; set; }

        /// <summary>
        /// 隶属成品
        /// </summary>
        public string SubordinateProduct { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        public string StaffId { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        public string StaffName { get; set; }

        /// <summary>
        /// 班别
        /// </summary>
        public string TeamType { get; set; }

        /// <summary>
        /// 工件Id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public string SubId { get; set; }

        /// <summary>
        /// 生产数量
        /// </summary>
        public Double? Nums { get; set; }

        /// <summary>
        /// 打孔数量
        /// </summary>
        public Double? PunchingNums { get; set; }

        /// <summary>
        /// 打孔位置
        /// </summary>
        public string PunchingPosition { get; set; }

        /// <summary>
        /// 物料长度
        /// </summary>
        public Double? MaterialLength { get; set; }

        /// <summary>
        /// 孔径
        /// </summary>
        public string Aperture { get; set; }

        /// <summary>
        /// 材质
        /// </summary>
        public string Texture { get; set; }
    }

    public class ProductsDetailReform
    {
        /// <summary>
        /// 流转单Id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 派工日期
        /// </summary>
        public DateTime? DispatchDate { get; set; }


        /// <summary>
        /// 隶属成品
        /// </summary>
        public string SubordinateProduct { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        public string StaffId { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        public string StaffName { get; set; }

        /// <summary>
        /// 班别
        /// </summary>
        public string TeamType { get; set; }

        /// <summary>
        /// 工件Id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public string SubId { get; set; }

        /// <summary>
        /// 生产数量
        /// </summary>
        public Double? ProductNums { get; set; }
        /// <summary>
        /// 派工数量
        /// </summary>
        public Double? DispatchNums { get; set; }
    }
}
